package org.example.entity;

import java.math.BigDecimal;

/**
 * @author you-ni
 * @title 芒果
 * @date 2025/5/21 10:23
 * @description 20 元/斤
 */
public class Mango extends Fruit {

    public Mango(BigDecimal price, double weight) {
        this.price = price;
        this.weight = weight;
    }

    @Override
    public BigDecimal getPrice() {
        return price;
    }

    @Override
    public double getWeight() {
        return weight;
    }
}
